package com.big.app.controller;

import com.big.app.service.TalkService;
import com.big.app.vo.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/talk/")
@Api(value = "用户评论",tags = "用户评论")
@CrossOrigin
public class TalkController {
    @Autowired
    private TalkService service;

    @GetMapping("list.do")
    R talkList(int fid){
        return service.selectAll(fid);
    }

    @GetMapping("lovenum.do")
    R loveNum(Integer lovenum,int id){
        return service.loveNum(lovenum,id);
    }

}
